package org.NooLab.itexx.tcp;




public interface DataSenderIntf {

	public final static int __ERR_BASENUM_HTTP = -100;
	public final static int __ERR_BASENUM_FTP  = -200;
	public final static int __ERR_BASENUM_TCP  = -500;
	public final static int __ERR_BASENUM_UDP  = -600;

	public final static int __SEND_ERR_ERROR = -3;
	
	public final static String __TemplateMsg = "<suid>#SUID#</suid>::#DATA#" ;
										/*
											= "<?xml version=\"1.0\" encoding=\"utf-8\"?>"+
	                                           "  <message>"+
	                                           "    <suid value=\"#SUID#\" />"+
	                                           "    <data>"+
	                                           "       #DATA#"+
	                                           "    </data>"+
	                                           "  </message>";
	                                      */
	
	public void send( Object obj ) ;
	
	public void send( Object obj, String suid ) ;
	
	public void release() ;
	
	public void setTimeOut( int value) ;
	
	public int getLastState( String suid );

	int getLastSenderState();

	public void setSilentShutDown(int silentShutDown);
	
}
